home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 7
/
FM Towns Free Software Collection 7.iso
/
taropyon
/
guilib3
/
inc
/
fscf.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-30
|
6KB
|
209 lines
#ifndef _FSCF_H
#define _FSCF_H
/* ファイルセレクタ,ダイアログの大きさと,表示位置 */
#define FS_DLG_XS (56*8)
#define FS_DLG_YS (34*8)
#define FS_DLG_X0 (DspCtrl.scinf[DspCtrl.writePage].dlgArea.x1+\
(DspCtrl.scinf[DspCtrl.writePage].dlgArea.x2-\
DspCtrl.scinf[DspCtrl.writePage].dlgArea.x1-FS_DLG_XS)/2)
#define FS_DLG_Y0 (DspCtrl.scinf[DspCtrl.writePage].dlgArea.y1+\
(DspCtrl.scinf[DspCtrl.writePage].dlgArea.y2-\
DspCtrl.scinf[DspCtrl.writePage].dlgArea.y1-FS_DLG_YS)/2)
/* 各部品の表示位置 */
#define FS_INF_X(x) (fs->dlg->fr.x0+8+(x))
#define FS_INF_Y(y) (fs->dlg->fr.y0+9*8+(y))
#define FS_GST_X(x) (fs->dlg->fr.x0 + 8 + (x))
#define FS_GST_Y(y) (fs->dlg->fr.y0 + 29*8 + (y))
#define FS_GST_FLDSIZ (54)
#define FS_SORT_X(x) (fs->dlg->fr.x0+4+49*8+(x))
#define FS_SORT_Y(y) (fs->dlg->fr.y0+ 5*8+(y))
#define FS_WILD_X(x) (fs->dlg->fr.x0+4+49*8+(x))
#define FS_WILD_Y(y) (fs->dlg->fr.y0-1+ 7*8+(y))
#define FS_SBAR_X(x) (fs->dlg->fr.x0+ 53*8 +(x))
#define FS_SBAR_Y(y) (fs->dlg->fr.y0+(12*8)+(y))
#define FS_SBAR_XS (16)
#define FS_SBAR_YS (8*16)
#define FS_DRV_X(d,x) (fs->dlg->fr.x0+ 8+((d)%8)*6*8+(x))
#define FS_DRV_Y(d,y) (fs->dlg->fr.y0+5*8+((d)/8)*15 +(y))
#define FS_SCN_X(x) (fs->dlg->fr.x0+8+(x))
#define FS_SCN_Y(y) (fs->dlg->fr.y0+(12*8)+(y))
#define FS_RET_X(x) (fs->dlg->fr.x0+52*8+(x))
#define FS_RET_Y(y) (fs->dlg->fr.y0+31*8+4+(y))
#define FS_EXT_X(n,x) (fs->dlg->fr.x0+8+(n)*6*8+(x))
#define FS_EXT_Y(n,y) (fs->dlg->fr.y0+32*8+2+(y))
#define FS_CHD_X(x) (FS_RET_X(-6*8-16)+(x))
#define FS_CHD_Y(y) (fs->dlg->fr.y0+32*8+2+(y))
/* --------------- ------------ イベンド配置位置 */
#define FS_BTN_EXIT (1)
#define FS_BTN_RET (4)
#define FS_PARTS_MOVE (7)
#define FS_BTN_SORT (8)
#define FS_PF_SORT (9)
#define FS_BTN_WILD (10)
#define FS_PF_WILD (11)
#define FS_BTN_MKDIR (12)
#define FS_BTN_RENAM (13)
#define FS_BTN_DEL (14)
#define FS_BTN_COPY (15)
#define FS_BTN_DOS (16)
#define FS_PF_MKDIR (17)
#define FS_PF_RENAM (18)
#define FS_PF_DEL (19)
#define FS_PF_COPY (20)
#define FS_PF_DOS (21)
#define FS_BTN_CHD (22)
#define FS_KEY_NEXT (24)
#define FS_KEY_BEFORE (25)
#define FS_KEY_HOME (26)
#define FS_KEY_TOP (27)
#define FS_KEY_LAST (28)
#define FS_BTN_DRV(no) (32+(no))
#define FS_BTN_FILE(no) (48+(no))
#define FS_EVT_NUM 80 /* イベント登録数 */
/* --------------- ------------ イベントNo. */
#define FS_EVT_EXIT (9990)
#define FS_EVT_RET (9991)
#define FS_EVT_MOVE (7)
#define FS_EVT_SORT (8)
#define FS_EVT_WILD (9)
#define FS_EVT_MKDIR (12)
#define FS_EVT_RENAM (13)
#define FS_EVT_DEL (14)
#define FS_EVT_COPY (15)
#define FS_EVT_DOS (16)
#define FS_EVT_CHD (22)
#define FS_EVT_NEXT (24)
#define FS_EVT_BEFORE (25)
#define FS_EVT_TOP (27)
#define FS_EVT_LAST (28)
#define FS_EVT_DRV(no) (no)
#define FS_EVT_DMY (9996)
#define FS_EVT_CONTINUE (9997)
/*------------------------------------------------------------------*/
/* 色番号 */
#define FSCOL_BAC (C_HWHITE)
#define FSCOL_SCN (C_MBLACK)
#define FSCOL_STR (C_WHITE)
#define FSCOL_DIR (C_YELLOW)
#define FSCOL_SYS (C_MAGENTA)
#define FSCOL_ARC (C_RED)
#define FSCOL_SEL (C_GREEN)
#define FSCOL_ERR (C_RED)
#define FSCOL_INF (C_CYAN)
#define FSCOL_CUR (C_WHITE)
#define FSCOL_LIN (C_HBLUE)
#define FSCOL_ICN (C_MBLACK)
#define FSCOL_BOX (C_HBLACK)
#define FSCOL_BTN (C_WHITE)
#define FSWORK_DRV_CHG (0)
#define FSWORK_DIR_CHG (1)
#define FSWORK_DRV_TOP (2)
#define FSPATH_LEN (37) /* 表示可能なパス名の文字数 */
/*----- "_fs_dsp.c" ------------------------------------------------*/
//void FS_pfkey_dsp( FS_T *fs, int md );
void FS_wind_cls( FS_T *fs );
void FS_wind_puts( FS_T *fs, COLOR col, char *s);
/*----- "_fs_chd.c" ------------------------------------------------*/
int FS_funcChd( int evtNo, EVTSBJ_T *sbj );
/*----- "_fs_cur.c" ------------------------------------------------*/
int FS_curSelect( FS_T *fs );
/*----- "_fs_drv.c" ------------------------------------------------*/
int FS_chDrvWork( FS_T *fs );
int FS_funcDrive( int evtNo, EVTSBJ_T *sbj );
int FS_drawDrvInf( FS_T *fs );
int FS_drawDrive( FS_T *fs );
/*----- "_fs_fdsp.c" --------------------------------------------*/
int FS_funcFile( int evtNo, EVTSBJ_T *sbj );
void FS_drawFile( FS_T *fs );
/*----- "_fs_key.c" ------------------------------------------------*/
int FS_funcTop( int evtNo, EVTSBJ_T *sbj );
int FS_funcLast( int evtNo, EVTSBJ_T *sbj );
int FS_funcNext( int evtNo, EVTSBJ_T *sbj );
int FS_funcBefore( int evtNo, EVTSBJ_T *sbj );
int FS_retEnd( FS_T *fs );
int FS_funcRetkey( int evtNo, EVTSBJ_T *sbj);
/*----- "_fs_read.c" --------------------------------------------*/
int FS_readFile( FS_T *fs );
int FS_pickupFile( FS_T *fs, int *dir_num, int *file_num );
int FS_readWork( FS_T *fs, int md );
/*----- "_fs_sbar.c" --------------------------------------------*/
int FS_funcSbar( int evtNo, SBAR *sb );
/*----- "_fs_sort.c" --------------------------------------------*/
int FS_funcSort(int evtNo, EVTSBJ_T *sbj);
/*----- "_fs_wild.c" --------------------------------------------*/
int FS_funcWild(int no, EVTSBJ_T *sbj);
/*----- "_fs_ext.c" ------------------------------------------------*/
int FS_funcMkdir( int evtNo, EVTSBJ_T *sbj );
int FS_funcRenam( int evtNo, EVTSBJ_T *sbj );
int FS_funcDel( int evtNo, EVTSBJ_T *sbj );
int FS_funcCopy( int evtNo, EVTSBJ_T *sbj );
/*----- "_fs_copy.c" --------------------------------------------*/
int FS_funcDos( int evtNo, EVTSBJ_T *sbj );
#ifdef _FS_MAIN
# define DRVMAX (17)
# define IS_FLP 0x00
# define IS_RES 0x01
# define IS_SCSI 0x02
# define IS_RAM 0x03
# define IS_MDC 0x04
# define IS_ROM 0x05
# define IS_CDR 0x06
# define IS_ADD 0x07 /* 追加タイプ??? */
# define IS_NON 0xFF
static UCHAR DrvType[DRVMAX] =
{ IS_NON, IS_NON, IS_NON, IS_NON,
IS_NON, IS_NON, IS_NON, IS_NON,
IS_NON, IS_NON, IS_NON, IS_NON,
IS_NON, IS_NON, IS_NON, IS_NON,
IS_NON
};
static char DspDrv[DRVMAX] =
{ ERR, ERR, ERR, ERR,
ERR, ERR, ERR, ERR,
ERR, ERR, ERR, ERR,
ERR, ERR, ERR, ERR,
ERR
};
static char *Dev_name[] =
{ "FDD", "???", "HDD", "RAM",
"MDC", "ROM", "CDR", "???",
"???", "???", "???", "???"
};
#endif
#endif